{template header}

<div class="container">


 <ol class="breadcrumb">
  <li><a href="{tsUrl('study')}">课程</a></li>
  <li><a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a> </li>
  <li class="active">管理</li>
 </ol>



 <div class="panel panel-default">
  <div class="panel-body">


   {template edit_menu}




      <div class="row">
          <div class="col-md-2"></div>
          <div class="col-md-8">


              <form method="POST" action="{SITE_URL}index.php?app=study&ac=edit&ts=lessoneditdo" enctype="multipart/form-data">

                  <div class="form-group">
                      <label>课时排序</label>
                      <input type="text" class="form-control" name="orderid" value="{$strLesson['orderid']}">
                  </div>

                  <div class="form-group">
                      <label>课程标题</label>
                      <input type="text" class="form-control" name="title" value="{$strLesson['title']}">
                  </div>


                  <div class="form-group">
                      <label>课时介绍</label>
                      <div id="tseditor"></div>
                      <div style="display: none;">
                          <textarea name="content">{$strLesson['content']}</textarea>
                      </div>
                      <!--<textarea name="content" id="tseditor"></textarea>-->

                  </div>



                  {if $strStudy['price']>0}
                  <div class="form-group">
                      <label>课时价格</label>

                      <p>
                          <input type="radio" name="isprice" value="1" {if $strLesson['isprice']}checked{/if} />收费
                          <input type="radio" name="isprice" value="0" {if $strLesson['isprice']==0}checked{/if} />免费

                          (选择免费本课时将免费开放，收费包含在课程中一次性买断)
                      </p>

                  </div>
                  {/if}



                  <div class="form-group">
                      <label>选择视频</label>

                      <p>
                          <select name="videoid">
                              <option value="0" {if $strLesson['videoid']==0}selected{/if}>选择视频</option>
                              {loop $arrVideo $key $item}
                              <option value="{$item['videoid']}" {if $item['videoid']==$strLesson['videoid']}selected{/if}>{$item['title']}</option>
                              {/loop}
                          </select>
                          (<a href="{tsUrl('study','edit',array('ts'=>'video','studyid'=>$strStudy['studyid']))}">没有视频？</a>)
                      </p>

                  </div>

                  <input type="hidden" name="lessonid" value="{$strLesson['lessonid']}" />

                  <button type="submit" class="btn btn-success btn-lg">修改课时</button>

              </form>


          </div>
          <div class="col-md-2"></div>
      </div>


  
</div>
</div>


</div>
{php doAction('tseditor')}
{template footer}

